package com.banyuan.HomeWork.集合类.数据结构;

public class MyLinkedListTest {
    public static void main(String[] args) {
        MyLinkedList list = new MyLinkedList();
        list.addFirst("one");
        list.addFirst("two");
        list.addLast("last");
        list.addFirst("three");
        list.addFirst("four");
        list.addFirst("five");
        list.addFirst("six");
        System.out.println(list.toString());
//        list.remove();
        list.add(6,"I");
        System.out.println(list);
        list.remove(6);
        System.out.println(list);
        list.remove(6);
        System.out.println(list);
        list.add(0,"first");
        System.out.println(list);
        list.remove(0);
        System.out.println(list);
    }
}
